package vn.com.pavibook.domain.model;

import java.io.Serializable;

import org.apache.commons.lang3.StringEscapeUtils;

import vn.com.pavibook.model.vo.SupportNewsVO;

@SuppressWarnings("serial")
public class SupportNews implements Serializable {

	private Integer id;
	private String title;
	private String content;
	private int active;
	private String url_image;
	
	public SupportNewsVO convertToSupportNewsVO() {
		SupportNewsVO supportNewsVO = new SupportNewsVO();
		supportNewsVO.setActive(active);
		supportNewsVO.setContent(StringEscapeUtils.escapeHtml4(content));
		supportNewsVO.setId(id);
		supportNewsVO.setTitle(title);
		supportNewsVO.setUrl_image(url_image);
		return supportNewsVO;
	}
	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public int getActive() {
		return active;
	}

	public void setActive(int active) {
		this.active = active;
	}
	public String getUrl_image() {
		return url_image;
	}
	public void setUrl_image(String url_image) {
		this.url_image = url_image;
	}

}
